
const showCircleTop = function (cname){
  let header = document.createElement('header');
  header.className = `head`
  header.innerHTML = `
      <div class="headNav">
        <a class="${cname === 'circle' ? 'active': ''}" href="./circle.html">关注</a>
        <a class="${cname === 'nearby' ? 'active': ''}"  href="./nearby.html">附近</a>
        <a class="${cname === 'Collection' ? 'active': ''}"  href="./Collection.html">收藏</a>
        <a class="${cname === 'dynamic' ? 'active': ''}"  href="./dynamic.html">个人动态</a>
      </div>
      <div class="addBtn">
        <a class="add"  href="./issue.html">添加+</a>
      </div>
  `
  document.body.prepend(header)
}

module.exports = {
  showCircleTop
}